package com.jcw.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jcw.common.R;
import com.jcw.domain.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author JCW
* @description 针对表【category(菜品及套餐分类)】的数据库操作Service
* @createDate 2023-03-27 22:39:09
*/
public interface CategoryService extends IService<Category> {

    R<Page> pagination(int page, int pageSize);

    R<String> addCategory(Category category);

    R<String> editCategory(Category category);

    R<String> removeCategory(Long ids);

    R<List> getCategoryList(Integer type);
}
